<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>第一个JS程序</title>
</head>

<body>
<script type="text/javascript"><!-或者-language="Javascript"-->
function rec(){
	alert("HELLO,欢迎学习javascript")	
	
}
	<!--var a=12;
		var b=2.1;-->
	<!--php中不需要定义类型-dw中需要->c=4.6;
	
	
	</script>	
	
<form name="form1" action="" method="post">
	
	<input type="button" value="运行程序" onClick="rec()">
	
	
	
	</form>	
</body>
</html>
